package com.wind.taobao.api.picture.rest
{
	import com.wind.taobao.api.IPrivateAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;
	import com.wind.taobao.core.webservice.TaobaoRequest;

	/**
	 * taobao.picture.delete Request
	 * @author fxy
	 *
	 */
	public class PictureDeleteRequest extends TaobaoRequest implements IPrivateAPI
	{
		public override function get method():String
		{
			return "taobao.picture.delete"
		}

		/**
		 * Y 	 图片ID字符串,可以一个也可以一组,用英文逗号间隔,如450,120,155
		 */
		[Bindable]
		public var picture_ids:String;

		public override function validate():void
		{
			if (!TaobaoUtils.hasAllValue([picture_ids]))
			{
				throw new InvalidRequestParametersException("请求参数[picture_ids]不能为空");
			}
		}
	}
}